package com.gitee.feizns.web.domain.page;

import java.util.List;

/**
 * @author feizns
 * @since 2019/7/8
 */
public class RowBoundsSameLayerPageVo<D> implements SameLayerPageVo<D> {

    private RowBoundsPageVo pageVo;

    private List<D> records;

    public RowBoundsSameLayerPageVo(PageAo pageAo, List<D> records) {
        this.pageVo = new RowBoundsPageVo(pageAo);
        this.records = records;
    }

    @Override
    public Long getOffset() {
        return pageVo.getOffset();
    }

    @Override
    public Long getLimit() {
        return pageVo.getLimit();
    }

    @Override
    public Long getSize() {
        return pageVo.getSize();
    }

    @Override
    public Long getPages() {
        return pageVo.getPages();
    }

    @Override
    public Long getCurrent() {
        return pageVo.getCurrent();
    }

    @Override
    public Long getTotal() {
        return pageVo.getTotal();
    }

    @Override
    public List getRecords() {
        return records;
    }

}
